Symbols Preview Correctly but Like a Square in PDF

Description

PdfSharp is restrictive about which fonts support Symbol characters.

Solution

The font 'Segoe UI Symbol' supports extended symbol characters when rendered by PdfSharp, So changing the text, embedded html, or field font family to 'Segoe UI Symbol' should solve this issue.

Sample HTML for report

Example HTML with embedded symbols, first with default font, second with explicit Symbol font.

<html>
<body>

<h1>Symbols with font that does not support symbols in PdfSharp</h1>
<p>
&#9733;&#9733;&#9733;&#9733;&#9733;&#9733;
</p>
<h1>Same Symbols with font that does support symbols in PdfSharp</h1>
<p style="font-family:Segoe UI Symbol; font-size: 30pt;">&#9733;&#9733;&#9733;&#9733;&#9733;&#9733;</p>
</body>
</html>

Preview Shows Symbols for both fonts

images/symbolFontPreview.png

Pdf Only Shows Symbols for font that is explicitly a 'Symbol' font

images/symbolFontPdf.png